package com.tocean.demo.entity.questionbank;

import com.tocean.demo.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_user_info")
public class User extends BaseEntity {
    /**
     * 账号
     */
    @Column(name = "username")
    private String username;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 手机号码
     */
    @Column(name = "phone_number")
    private String phoneNumber;

    /**
     * 密码
     */
    @Column(name = "password")
    private String password;

    /**
     * 昵称
     */
    @Column(name = "nickname")
    private String nickname;

    /**
     * 真实姓名
     */
    @Column(name = "realname")
    private String realname;

    /**
     * 年级
     */
    @Column(name = "grade")
    private String grade;

    /**
     * 用户级别类型：
     */
    @Column(name = "level_type")
    private Integer levelType;

    /**
     * 生日
     */
    @Column(name = "birthday")
    private Date birthday;

    /**
     * 用户性别
     * 0	未知
     * 1	男性
     * 2	女性
     */
    @Column(name = "gender")
    private Integer gender;
}
